<?php
require_once __DIR__."/../../vendor/autoload.php";
//use Workerman\Worker;

use GatewayWorker\BusinessWorker;

$worker = new BusinessWorker();
$worker->name="businessWorker";
//$worker->count = 3;
$worker->registerAddress="127.0.0.1:12138";

$worker->eventHandler = "\app\gatewayworker\MyEvent";

$worker->onWorkerStart = function (){
   echo "businessWorker onWorkerStart".PHP_EOL;
};

$worker->onWorkerStop = function (){
    echo "businessWorker onWorkerStop".PHP_EOL;
};

//Worker::runAll();
